package com.ruoyi.bus.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 【请填写功能名称】对象 bus_alert
 * 
 * @author ruoyi
 * @date 2021-09-08
 */
public class BusAlert extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 发送手机号 */
    @Excel(name = "发送手机号")
    private String tel;

    /** MN编号 */
    @Excel(name = "MN编号")
    private String mn;

    /** 短信内容 */
    @Excel(name = "短信内容")
    private String content;
    private BusMonitor busMonitor;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;
    @Excel(name = "监测点id")
    private Long monitorId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTel(String tel) 
    {
        this.tel = tel;
    }

    public String getTel() 
    {
        return tel;
    }
    public void setMn(String mn) 
    {
        this.mn = mn;
    }

    public String getMn() 
    {
        return mn;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setAddTime(Date addTime) 
    {
        this.addTime = addTime;
    }

    public Date getAddTime() 
    {
        return addTime;
    }

    public BusMonitor getBusMonitor() {
        return busMonitor;
    }

    public void setBusMonitor(BusMonitor busMonitor) {
        this.busMonitor = busMonitor;
    }

    public Long getMonitorId() {
        return monitorId;
    }

    public void setMonitorId(Long monitorId) {
        this.monitorId = monitorId;
    }

    @Override
    public String toString() {
        return "BusAlert{" +
                "id=" + id +
                ", tel='" + tel + '\'' +
                ", mn='" + mn + '\'' +
                ", content='" + content + '\'' +
                ", busMonitor=" + busMonitor +
                ", addTime=" + addTime +
                ", monitorId=" + monitorId +
                '}';
    }

    //    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//            .append("id", getId())
//            .append("tel", getTel())
//            .append("mn", getMn())
//            .append("content", getContent())
//            .append("addTime", getAddTime())
//            .toString();
//    }
}
